<extend name="negativeEnergyIndex"/>
<block name="find">
    <div class="posts-content">
        <div class="postshead" style="width: 100%;">
            <h4>{$posts.blog.blog_title}</h4>
        </div>
        <div class="postsbody">
            <div class="blogcontent">
                <p>{$posts.blog.blog_content}</p>
            </div>
            <hr/>
            <div class="goods-content">
                <span>相关图片：</span><br /><img src="/finder{$posts.blog.energy_blog_picture}" alt="picture"/>
            </div>
            <div class="user-info">
                <hr style="margin-bottom: 5px"/>
                <h4 class="text-center">为他们喝彩！</h4>

            </div>

            <div class="posts-info">
                <p class="text-right">
                    <a href="">{$posts.user.user_name}</a>
                    <span>|1楼 {$posts.blog.blog_date|date="Y-m-d  H:i:s",###}</span>
                </p>
            </div>
        </div>
        <!--回复列表-->
        <div class="replies-list">
            <ul class="reply-list">
                <foreach name="posts.replies" item="rep">

                    <li class="clearfix">
                        <div class="li-block" style="border-radius: 0px">
                            <!--//这里的U方法传参的时候数组要写原生形式，不能写成array.xx-->
                            <p>{$rep.reply_content}</p>
                            <div class="reply-info">
                                <p class="text-right">
                                    <a href="">{$rep.user_name}</a>
                                    <span>|{++$floor_count}楼 {$rep.reply_time|date="Y-m-d  H:i:s",###}</span>
                                </p>
                            </div>
                        </div>
                    </li>


                </foreach>
            </ul>
            <div style="clear:both;height:0;font-size: 1px;line-height: 0px;"></div>
        </div>
        <!--回复域-->
        <div class="reply-area">
            <form class="reply" id="reply-form" action="{:U('Blog/reply',array('area_id'=>4))}" method="post">
                <input type="hidden" name="blog_id" value="{$posts.blog.blog_id}"/>
                <input name="reply_type" value="0" type="hidden"/>
                <textarea name="reply_content" id="reply_area-text" rows="6"></textarea>
                <button class="btn btn-default" id="btn-reply" type="submit">回复</button>
            </form>
        </div>
    </div>
</block>
<block name="page">
    <div class="blog-page">
        {$posts.page}
    </div>
</block>